﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Enterprise.aspx.cs" Inherits="Pages_Enterprise" MasterPageFile="~/Admin/MasterPage.master" Title="企业管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="2020px" BoxWidth="440px" Url="EnterpriseForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加企业</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvEnterprise" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="EnterCode" HeaderText="" SortExpression="EnterCode" />
            <asp:BoundField DataField="EnterName" HeaderText="" SortExpression="EnterName" />
            <asp:BoundField DataField="CorporateCode" HeaderText="组织代码" SortExpression="CorporateCode" />
            <asp:BoundField DataField="Corporate" HeaderText="组织" SortExpression="Corporate" />
            <asp:BoundField DataField="UserName" HeaderText="用户名称" SortExpression="UserName" />
            <asp:BoundField DataField="Header" HeaderText="头部" SortExpression="Header" />
            <asp:BoundField DataField="UserPassword" HeaderText="用户密码" SortExpression="UserPassword" />
            <asp:BoundField DataField="Bankroll" HeaderText="资金" SortExpression="Bankroll" />
            <asp:BoundField DataField="ExistTime" HeaderText="" SortExpression="ExistTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ResidenceTime" HeaderText="编号" SortExpression="ResidenceTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="Area" HeaderText="地区" SortExpression="Area" />
            <asp:BoundField DataField="Tel" HeaderText="电话" SortExpression="Tel" />
            <asp:BoundField DataField="Fax" HeaderText="传真" SortExpression="Fax" />
            <asp:BoundField DataField="RegisterType" HeaderText="注册是否" SortExpression="RegisterType" />
            <asp:BoundField DataField="CallingType" HeaderText="呼叫类型" SortExpression="CallingType" />
            <asp:BoundField DataField="IsTechCorp" HeaderText="是否技术公司" SortExpression="IsTechCorp" />
            <asp:BoundField DataField="CheckinYear" HeaderText="登记年" SortExpression="CheckinYear" />
            <asp:BoundField DataField="InveBranch" HeaderText="" SortExpression="InveBranch" />
            <asp:BoundField DataField="FruitTransQty" HeaderText="" SortExpression="FruitTransQty" />
            <asp:BoundField DataField="TransRelyonSchool" HeaderText="转换依赖学校" SortExpression="TransRelyonSchool" />
            <asp:BoundField DataField="PalmFruit" HeaderText="" SortExpression="PalmFruit" />
            <asp:BoundField DataField="OutputFruit" HeaderText="" SortExpression="OutputFruit" />
            <asp:BoundField DataField="Revenues" HeaderText="" SortExpression="Revenues" />
            <asp:BoundField DataField="GDP" HeaderText="生产总值" SortExpression="GDP" />
            <asp:BoundField DataField="Profit" HeaderText="利润" SortExpression="Profit" />
            <asp:BoundField DataField="Tax" HeaderText="传真" SortExpression="Tax" />
            <asp:BoundField DataField="Exports" HeaderText="" SortExpression="Exports" />
            <asp:BoundField DataField="Practitioners" HeaderText="从业者" SortExpression="Practitioners" />
            <asp:BoundField DataField="Doctor" HeaderText="文档到" SortExpression="Doctor" />
            <asp:BoundField DataField="MasterQty" HeaderText="主数量" SortExpression="MasterQty" />
            <asp:BoundField DataField="PostGraduate" HeaderText="发布毕业" SortExpression="PostGraduate" />
            <asp:BoundField DataField="Undergraduate" HeaderText="" SortExpression="Undergraduate" />
            <asp:BoundField DataField="College" HeaderText="学院" SortExpression="College" />
            <asp:BoundField DataField="Secondary" HeaderText="" SortExpression="Secondary" />
            <asp:BoundField DataField="NoOfScience" HeaderText="" SortExpression="NoOfScience" />
            <asp:BoundField DataField="NoOfResearch" HeaderText="" SortExpression="NoOfResearch" />
            <asp:BoundField DataField="StudyAbord" HeaderText="" SortExpression="StudyAbord" />
            <asp:BoundField DataField="TrainDay" HeaderText="培训日" SortExpression="TrainDay" />
            <asp:BoundField DataField="Graduated" HeaderText="毕业" SortExpression="Graduated" />
            <asp:BoundField DataField="ManagerPro" HeaderText="管理者专业" SortExpression="ManagerPro" />
            <asp:BoundField DataField="PatentQty" HeaderText="权限数量" SortExpression="PatentQty" />
            <asp:BoundField DataField="DiscoveryQty" HeaderText="是否覆盖" SortExpression="DiscoveryQty" />
            <asp:BoundField DataField="ApprovedPatent" HeaderText="批准权限" SortExpression="ApprovedPatent" />
            <asp:BoundField DataField="ApprovedDisQty" HeaderText="批准是否数量" SortExpression="ApprovedDisQty" />
            <asp:BoundField DataField="ForPatents" HeaderText="为权限" SortExpression="ForPatents" />
            <asp:BoundField DataField="ComPlans" HeaderText="公司计划" SortExpression="ComPlans" />
            <asp:BoundField DataField="StateProjects" HeaderText="统计专业" SortExpression="StateProjects" />
            <asp:BoundField DataField="ScExpenditure" HeaderText="开支" SortExpression="ScExpenditure" />
            <asp:BoundField DataField="ReExpenditure" HeaderText="" SortExpression="ReExpenditure" />
            <asp:BoundField DataField="NewProExp" HeaderText="新专业" SortExpression="NewProExp" />
            <asp:BoundField DataField="GovernFund" HeaderText="管理基金" SortExpression="GovernFund" />
            <asp:BoundField DataField="CorporateFund" HeaderText="组织基金" SortExpression="CorporateFund" />
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="IsAbroad" HeaderText="是否国外" SortExpression="IsAbroad" />
            <asp:BoundField DataField="IsWorkBase" HeaderText="是否" SortExpression="IsWorkBase" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="Gender" HeaderText="产生" SortExpression="Gender" />
            <asp:BoundField DataField="TiptopEdu" HeaderText="提示顶部教育" SortExpression="TiptopEdu" />
            <asp:BoundField DataField="Mobile" HeaderText="手机" SortExpression="Mobile" />
            <asp:BoundField DataField="PasswordMemo" HeaderText="密码注释" SortExpression="PasswordMemo" />
            <asp:BoundField DataField="Prop0" HeaderText="属性0" SortExpression="Prop0" />
            <asp:BoundField DataField="Prop2" HeaderText="属性2" SortExpression="Prop2" />
            <asp:BoundField DataField="Prop1" HeaderText="属性1" SortExpression="Prop1" />
            <asp:BoundField DataField="Prop3" HeaderText="属性3" SortExpression="Prop3" />
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="EnterpriseForm.aspx?ID={0}" Height="2020px" Text="编辑" Width="440px" Title="编辑企业">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.CMS.Enterprise"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.CMS.Enterprise">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>